{extend name="public:base" /}


{block name="content"}

<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-title">
                    <form method="post" action="{:url('addAuth')}">
                        <div class="col-sm-3" style="float: left">
                            <input type="text" class="form-control" name="uid" placeholder="请输入UID，多个用英文逗号分隔">
                        </div>

                        <input type="hidden" name="group_id" value="{:input('id')}">
                        <button type="button" class="btn btn-primary btn-lg ajax-post">新增授权</button>
                    </form>

                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="iconfont icon-chevron-up"></i>
                        </a>
                    </div>
                </div>

                <div class="ibox-content">
                    <div class="table-responsive">
                        <table class="table table-striped">
                            <thead>
                            <tr>
                                <th>UID</th>
                                <th>账号</th>
                                <th>昵称</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            {notempty name="list"}
                            {volist name="list" id="vo"}
                            <tr>
                                <td>{$vo.uid}</td>
                                <td>{$vo.account}</td>
                                <td>{$vo.username}</td>
                                <td class="project-actions">
                                    <a href="{:url('relieveAuth', ['uid' => $vo['uid'], 'group_id' => input('id')])}" class="btn btn-white btn-sm ajax-operate"><i class="iconfont icon-iconfontquxiaoshouquan"></i> 解除授权
                                    </a>
                                </td>
                            </tr>
                            {/volist}
                            {/notempty}
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{/block}




